import init from './init';
function reducer(state = init, action) {
  const { type, data } = action;
  switch (type) {
    case 'theme':
      return { ...state, theme: data };
    case 'Transparency':
      return { ...state, Transparency: data };
    case 'workTip':
      return { ...state, workTip: data };
    case 'offWorkTime':
      return { ...state, offWorkTime: data };
    case 'trancksId':
      return { ...state, trancksId: data };
    case 'voiceSize':
      return { ...state, voiceSize: data };
    case 'bannerStyle':
      return { ...state, bannerStyle: data };
    case 'hotresource':
      return { ...state, hotresource: data };
    default:
      return { ...state };
  }
}
export default reducer;
